<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>欢迎登录</title>
</head>
<body>
<h1>登录到系统</h1>
<form method="post" action="login">
    <hr>
    <div>
        <label>
            <input type = "text" placeholder="用户名" name="username">
        </label>
    </div>
    <div>
        <label>
            <input type = "password" placeholder="密码" name="password">
        </label>
    </div>
    <div>
        <button>登录</button>
    </div>
</form>
</body>
</html>

<!--通过修改form标签的属性，现在点击登录按钮，会向后台发送一个post请求，请求地址为当前地址+/login，也就是Login.java的路径-->